import { createStore, combineReducers, applyMiddleware } from 'redux';
import * as userinfo from "./userinfo/reducer";
import thunk from 'redux-thunk';

const store = createStore(
    combineReducers({...userinfo }),
    applyMiddleware(thunk)
);

store.subscribe(() =>
    console.log('subscribe', store.getState())
)

export default store